<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

if ( ! function_exists('is_superUser'))
{
    function is_Logged(){
        $obj =& get_instance();
        $obj->load->library('session');
        $user = $obj->session->userdata('user_login');
        if($user)
            return true;
        else
            return false;    
    }
    
    function is_superUser(){
        $obj =& get_instance();
        $obj->load->library('session');
        $acl=$obj->session->userdata('acl');
        if(($acl=='008') || ($acl=='009') || ($acl=='01') || ($acl=='02') || ($acl=='03') )
            return true;
        else
            return false;    
    }
}